' Program to multiply two numbers PRINT 12.1 * 2 END
If you run this program it prints 24.2 on the computer monitor.
Computers do more than arithmetic. You have probably used a computer for word processing or for viewing documents on the Web (such as this one). QBasic may be used with words, too. Here is a program that writes Hello World onto the monitor screen:
' Program to write words to the monitor PRINT "Hello World" END
In this program the PRINT statement has exactly what you want printed inside quotes (" "). When the program runs, the characters inside the quotes are printed. The quotes are not printed. The "Hello World" is called a string because what you want to print is a string of characters inside the quotes.
Write a program that prints
The sky is falling.
to the computer monitor.